import Vue from 'vue'
import VueRouter from 'vue-router'
import staticRoute from './staticRoute'
import {asyscRouteMap} from '@/router/staticRoute'


Vue.use(VueRouter)

const router = new VueRouter({
  // mode: 'hash',
  
  routes: asyscRouteMap
})
// router.beforeEach((to, from, next) => {
//   console.log(to.path,"123")
//   // if (store.getters.token){
//   //   console.log(store.getters.token)
//   // }
//   // console.log()
//   next()

// })

export default router